package com.adk.backend.mapper;

import com.adk.backend.entity.LxAsnList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ASN列表Mapper接口
 */
@Mapper
public interface AsnListMapper extends BaseMapper<LxAsnList> {
    
    /**
     * 查询ASN列表（关联查询）
     */
    List<Map<String, Object>> selectAsnListWithJoin(@Param("params") Map<String, Object> params);
    
    /**
     * 统计ASN列表总数
     */
    Long countAsnListWithJoin(@Param("params") Map<String, Object> params);
    
    /**
     * 根据订单ID和ASN单号查询
     */
    LxAsnList selectByOrderIdAndAsnNo(@Param("orderId") Long orderId, @Param("asnNo") String asnNo);
}

